//加密密码模块
const crypto = require('crypto');
module.exports=(pwd)=>{
    //加密密钥
    const secret = 'abcdefg';
    const hash = crypto.createHmac('sha256', secret)
                    .update(pwd)
                    .digest('hex');
    return hash;
}